package com.udata.client.place;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class UserRegisterPlace extends Place {
	private String token;

	public UserRegisterPlace(String token) {
		this.token = token;
	}

	public String getTokenName() {
		return token;
	}

	public static class Tokenizer implements PlaceTokenizer<UserRegisterPlace> {
		@Override
		public String getToken(UserRegisterPlace place) {
			return place.getTokenName();
		}

		@Override
		public UserRegisterPlace getPlace(String token) {
			return new UserRegisterPlace(token);
		}
	}
}
